package com.bsoft.gol.hcb.service.feedback.bean.request;


import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author:FangZhiyi
 * @Description
 * @Data Created in 2020/8/20 11:37
 * @Moddified By:
 */
public class AddFeedbackReq implements Serializable {
    @NotEmpty(message = "主键不能为空",groups = {ReplyGroups.class})
    private String feedbackId;

    //角色类型 1居民端 2医生端
    @NotEmpty(message = "角色类型不能为空",groups = {AddGroups.class})
    private String roleType;
    //用户姓名
    @NotEmpty(message = "用户姓名不能为空",groups = {AddGroups.class})
    private String userName;
    @NotEmpty(message = "用户ID不能为空",groups = {AddGroups.class})
    private String userId;
    @NotEmpty(message = "建议内容不能为空",groups = {AddGroups.class})
    private String content;
    //建议内容
//    @NotEmpty(message = "机构代码不能为空",groups = {AddGroups.class})
    private String organizationId;
    //机构代码
//    @NotEmpty(message = "机构名称不能为空",groups = {AddGroups.class})
    private String organizationName;
    //机构名称
    @NotEmpty(message = "回复人用户ID不能为空",groups = {ReplyGroups.class})
    private String replyUserId;
    //回复人用户ID
    @NotEmpty(message = "回复人用户姓名不能为空",groups = {ReplyGroups.class})
    private String replyUserName;
    //回复人用户姓名
    @NotEmpty(message = "回复内容不能为空",groups = {ReplyGroups.class})
    private String replyContent;
    //回复内容
    @NotEmpty(message = "反馈类型不能为空",groups = {AddGroups.class})
    private String classify;
    //反馈类型00全部 01意见建议 02问题反馈 03其他
    @NotEmpty(message = "反馈类型名称不能为空",groups = {AddGroups.class})
    private String classifyName;
    //反馈类型00全部 01意见建议 02问题反馈 03其他
    private String avatar;
    //图片地址 多个以逗号分隔
    @NotNull(message = "是否接受电话回访不能为空",groups = {AddGroups.class})
    private Byte phoneFollowUpFlag;
    //是否接受电话回访，0不接受，1接受
    private String phoneNo;
    //回访电话
    @NotEmpty(message = "运营商不能为空",groups = {AddGroups.class})
    private String operators;
    //运营商
    @NotEmpty(message = "操作系统版本不能为空",groups = {AddGroups.class})
    private String osVersion;
    //操作系统版本
    @NotEmpty(message = "app版本不能为空",groups = {AddGroups.class})
    private String appVersion;
    //app版本
    @NotEmpty(message = "设备唯一码不能为空",groups = {AddGroups.class})
    private String deviceUniqueCode;
    //设备唯一码

    public String getFeedbackId() {
        return feedbackId;
    }

    public void setFeedbackId(String feedbackId) {
        this.feedbackId = feedbackId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(String replyUserId) {
        this.replyUserId = replyUserId;
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public String getClassify() {
        return classify;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Byte getPhoneFollowUpFlag() {
        return phoneFollowUpFlag;
    }

    public void setPhoneFollowUpFlag(Byte phoneFollowUpFlag) {
        this.phoneFollowUpFlag = phoneFollowUpFlag;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getOperators() {
        return operators;
    }

    public void setOperators(String operators) {
        this.operators = operators;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getDeviceUniqueCode() {
        return deviceUniqueCode;
    }

    public void setDeviceUniqueCode(String deviceUniqueCode) {
        this.deviceUniqueCode = deviceUniqueCode;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }


    @Override
    public String toString() {
        return "{\"AddFeedbackReq\":{"
                + "\"feedbackId\":\""
                + feedbackId + '\"'
                + ",\"userId\":\""
                + userId + '\"'
                + ",\"userName\":\""
                + userName + '\"'
                + ",\"roleType\":\""
                + roleType + '\"'
                + ",\"content\":\""
                + content + '\"'
                + ",\"organizationId\":\""
                + organizationId + '\"'
                + ",\"organizationName\":\""
                + organizationName + '\"'
                + ",\"replyUserId\":\""
                + replyUserId + '\"'
                + ",\"replyUserName\":\""
                + replyUserName + '\"'
                + ",\"replyContent\":\""
                + replyContent + '\"'
                + ",\"classify\":\""
                + classify + '\"'
                + ",\"classifyName\":\""
                + classifyName + '\"'
                + ",\"avatar\":\""
                + avatar + '\"'
                + ",\"phoneFollowUpFlag\":"
                + phoneFollowUpFlag
                + ",\"phoneNo\":\""
                + phoneNo + '\"'
                + ",\"operators\":\""
                + operators + '\"'
                + ",\"osVersion\":\""
                + osVersion + '\"'
                + ",\"appVersion\":\""
                + appVersion + '\"'
                + ",\"deviceUniqueCode\":\""
                + deviceUniqueCode + '\"'
                + "}}";

    }

    public interface AddGroups {
    }
    public interface ReplyGroups {
    }
}
